package request

import (
	"gitee.com/cjsn/topsdk/ability654/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkerUpdateRequest struct {
	/*
	   工人信息     */
	Worker *domain.TmallServicecenterWorkerUpdateWorkerDto `json:"worker,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkerUpdateRequest) SetWorker(v domain.TmallServicecenterWorkerUpdateWorkerDto) *TmallServicecenterWorkerUpdateRequest {
	s.Worker = &v
	return s
}

func (req *TmallServicecenterWorkerUpdateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.Worker != nil {
		paramMap["worker"] = util.ConvertStruct(*req.Worker)
	}
	return paramMap
}

func (req *TmallServicecenterWorkerUpdateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
